package it.uniroma2.art.coda.projectionrule.antlr;

import it.uniroma2.art.coda.projectionrule.ParserPR;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class ANTLRPRPBundle implements BundleActivator{

	public void start(BundleContext context) throws Exception {
		System.out.println("ANTLRParserPR ADDED to FELIX");
		String description = "A parser for a Projection Rule file written according to a grammar specified in a ANTLR file";
		context.registerService(ParserPR.class.getName(), 
				new ANTLRParserPR("XMLParserPR", description), null);
		
	}

	public void stop(BundleContext arg0) throws Exception {
	}
}
